package cn.liontalk.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.GET;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description 测试Controller
 * @date 2018-12-02 12:21
 **/
@RestController
public class HelloController {

    @Value("${server.port}")
    private int port;


    @GetMapping(value = {"/hi","/hello"})
    public String testHi(){
        return "Hello , This is eureka client,Server Port Is:" + port;
    }

}
